package model;

public class SimpleResult {
	int time ; // in seconds
	int year ; // year of race
	String name ; 
	int birthYear ; 
	boolean isMale ;
	public SimpleResult(int time, int year, String name, int birthYear, String gender) {
		this.time = time ; 
		this.year = year ; 
		this.name = name ; 
		this.birthYear = birthYear ; 
		this.isMale = "M".equalsIgnoreCase(gender) ; 
	}
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getBirthYear() {
		return birthYear;
	}
	public void setBirthYear(int birthYear) {
		this.birthYear = birthYear ;
	}
	public boolean isMale() {
		return isMale;
	}
	public void setMale(boolean isMale) {
		this.isMale = isMale;
	}
	@Override
	public String toString() {
		return "SimpleResult [time=" + time + ", year=" + year + ", name="
				+ name + ", birthYear=" + birthYear + ", isMale=" + isMale
				+ "]";
	} 
	
}
